package com.kaili.pojo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 乡镇表
 * </p>
 *
 * @author cgm
 * @since 2018-05-08
 */
@TableName("base_town")
public class BaseTown implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 乡镇ID
     */
    @TableId(value = "town_id", type = IdType.AUTO)
    private Integer townId;
    /**
     * 乡镇代码
     */
    @TableField("town_code")
    private String townCode;
    /**
     * 乡镇名字
     */
    @TableField("town_name")
    private String townName;
    /**
     * 乡镇拼音
     */
    @TableField("town_pinyin")
    private String townPinyin;
    /**
     * 排序
     */
    @TableField("town_order")
    private Integer townOrder;
    /**
     * 区县ID
     */
    @TableField("county_id")
    private Integer countyId;
    /**
     * 邮编号
     */
    private Integer postcode;
    /**
     * 范围
     */
    private String reach;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建者
     */
    @TableField("created_by")
    private String createdBy;
    /**
     * 创建时间
     */
    @TableField("created_time")
    private Date createdTime;
    /**
     * 修改者
     */
    @TableField("modified_by")
    private String modifiedBy;
    /**
     * 修改时间
     */
    @TableField("modified_time")
    private Date modifiedTime;
    /**
     * 数据状态 0 删除 1 正常
     */
    @TableField("rd_status")
    private Integer rdStatus;


    public Integer getTownId() {
        return townId;
    }

    public void setTownId(Integer townId) {
        this.townId = townId;
    }

    public String getTownCode() {
        return townCode;
    }

    public void setTownCode(String townCode) {
        this.townCode = townCode;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getTownPinyin() {
        return townPinyin;
    }

    public void setTownPinyin(String townPinyin) {
        this.townPinyin = townPinyin;
    }

    public Integer getTownOrder() {
        return townOrder;
    }

    public void setTownOrder(Integer townOrder) {
        this.townOrder = townOrder;
    }

    public Integer getCountyId() {
        return countyId;
    }

    public void setCountyId(Integer countyId) {
        this.countyId = countyId;
    }

    public Integer getPostcode() {
        return postcode;
    }

    public void setPostcode(Integer postcode) {
        this.postcode = postcode;
    }

    public String getReach() {
        return reach;
    }

    public void setReach(String reach) {
        this.reach = reach;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getModifiedBy() {
        return modifiedBy;
    }

    public void setModifiedBy(String modifiedBy) {
        this.modifiedBy = modifiedBy;
    }

    public Date getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public Integer getRdStatus() {
        return rdStatus;
    }

    public void setRdStatus(Integer rdStatus) {
        this.rdStatus = rdStatus;
    }

    @Override
    public String toString() {
        return "BaseTown{" +
        ", townId=" + townId +
        ", townCode=" + townCode +
        ", townName=" + townName +
        ", townPinyin=" + townPinyin +
        ", townOrder=" + townOrder +
        ", countyId=" + countyId +
        ", postcode=" + postcode +
        ", reach=" + reach +
        ", remark=" + remark +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", modifiedBy=" + modifiedBy +
        ", modifiedTime=" + modifiedTime +
        ", rdStatus=" + rdStatus +
        "}";
    }
}
